﻿<Window x:Class="sunsetmp.LoginQuestionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="146" Width="205" WindowStyle="None" DataContext="{Binding}" Title="Подключиться к vk.com" AllowsTransparency="True" Background="{x:Null}" Foreground="{x:Null}" Icon="/Themes/Icons/Logo.ico" StateChanged="Window_StateChanged_1">
    <Border CornerRadius="7,7,7,7" Background="{DynamicResource MyBackground}" BorderThickness="1" BorderBrush="Black" MouseLeftButtonDown="Grid_MouseLeftButtonDown_1">
        <Grid>
            <Button Content="Да" HorizontalAlignment="Center" Name="ConnectButton" VerticalAlignment="Center" Height="23" Click="button1_Click_1" Foreground="White" Margin="0,0,0,0" Width="50" FontSize="14" />
            <Button Content="Нет"  HorizontalAlignment="Center"  Name="OfflineButton" VerticalAlignment="Center" Height="23"  Foreground="White" Margin="0,50,0,0" Width="50" FontSize="14" Click="OfflineButton_Click" />
            <Grid Height="20" Width="20" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="-1,1,1,-1">
                <Button x:Name="CloseW" Click="Close_Click"  />
                <Path Data="{StaticResource closeStyle0}" HorizontalAlignment="Center" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                    <Path.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
                        </TransformGroup>
                    </Path.RenderTransform>
                </Path>
            </Grid>
            <Label Content="Подключиться к vk.com?"  HorizontalAlignment="Center" Margin="18,26,17,0" VerticalAlignment="Top" Foreground="{DynamicResource MyTextColor}" FontSize="14"/>
            <CheckBox x:Name="CheckScreen" Foreground="{DynamicResource ResourceKey=MyTextColor}" Content="подключаться без запроса" Margin="5,0,0,5" HorizontalAlignment="Left"  VerticalAlignment="Bottom" FontSize="12" Checked="CheckScreen_Checked"/>
        </Grid>
    </Border>
</Window>
